import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
//import MyApp from './views/RouterView.vue'
import router from './router'
//import router2 from './router/myRouter.ts'

//导入并挂载Element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入并挂载vant
import Vant from 'vant'
import 'vant/lib/index.css'

//导入并挂载ant design
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'

//导入并执行mockServer
import './mock/mockServer.js'

//导入并挂载vuex
import store from './stores/vuex.js'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate) //使用持久化插件
app.use(pinia)
app.use(router)
//app.use(router2)
app.use(ElementPlus)
app.use(Vant)
app.use(Antd)
app.use(store)

app.mount('#app')
